package com.cy.server.mapper;

import com.cy.server.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiShaoZhuo
 * @since 2021-04-26
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * @Description: 通过用户id查询菜单列表
     * @Param: id
     * @return: List<Menu>
     * @Author: LiShaoZhuo
     * @Date: 2021/4/29
     */
    List<Menu> getMenusByAdminId(Integer id);

    
    /** 
    * @Description: 根据角色获取菜单列表 
    * @Param:  
    * @return:  
    * @Author: LiShaoZhuo 
    * @Date: 2021/4/29 
    */
    List<Menu> getMenusWithRole();

    /**
     * @Description: 查询所有菜单
     * @Param:
     * @return:
     * @Author: LiShaoZhuo
     * @Date: 2021/4/29
     */
    List<Menu> getAllMenus();
}
